package gek.uni.diplom.integrate.wizard.providers;

import org.eclipse.core.resources.IProject;
import org.eclipse.jface.viewers.IBaseLabelProvider;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.swt.graphics.Image;

public class ProjectLabelProvider implements ILabelProvider {

  @Override
  public void addListener(ILabelProviderListener listener) {

  }

  @Override
  public void dispose() {

  }

  @Override
  public boolean isLabelProperty(Object element, String property) {
    return true;
  }

  @Override
  public void removeListener(ILabelProviderListener listener) {

  }

  @Override
  public Image getImage(Object element) {
    // TODO Auto-generated method stub
    return null;
  }

  @Override
  public String getText(Object element) {
    if (element instanceof IProject)
      return ((IProject) element).getName();
    return null;
  }

}
